package com.hh.util;

import com.aliyun.oss.ClientException;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import org.springframework.stereotype.Service;

@Service
public class InitClient {
    public static DefaultAcsClient initVodClient() throws ClientException {
        String accessKeyId = "LTAI5tSTKECgQvx1Ui4Y85MR";
        String accessKeySecret = "g3B9XKHIZWSHC92xoLDKJgoYR2AA3F";
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
